#include "ResponderObject.h"

ResponderObject * ResponderObject::create(const std::string & key_name)
{
	ResponderObject * ret = new ResponderObject();
	if (ret && ret->init(key_name))
	{
		ret->autorelease();
	}
	else
	{
		CC_SAFE_DELETE(ret);
	}
	return ret;
}

bool  ResponderObject::init(const std::string & key_name)
{
	mes_key_name = key_name;
	return true;
}

std::string & ResponderObject::getKeyName()
{
	return mes_key_name;
}